import React, {Component} from 'react';
import Markdown from 'react-markdown';
import {Anchor, Row, Col} from 'antd';

const {Link} = Anchor;

class JsPage extends Component {
    constructor(props) {
        super(props);
    }


    render() {

        return (
            <div style={{background:"#c0d2bc"}}>
                <Row>
                    <Col span={19}>
                        <h3 id="mvn3_2"> mvn3不能下载mvn2的jar </h3>
                        <Markdown source={"\n" +
                        "可以通过 \n" +
                        "\n" +
                        "    mvn dependency:resolve \n" +
                        "命令，把当前工程（或模块）依赖的二方包列表打印出来;\n" +
                        "解析出当前模块要使用的二方库，那么我们能否直接在pom文件中把这些类库生成出来并扁平化（即引用当前lib的同时，把其他类库exclude掉:\n" +
                        "    \n" +
                        "    <dependency>\n" +
                        "      <groupId>com.**.**</groupId>\n" +
                        "      <artifactId>**-process</artifactId>\n" +
                        "      <version>2.0.1.7-JAVASSIST</version>\n" +
                        "      <scope>provided</scope>\n" +
                        "      <exclusions>\n" +
                        "        <exclusion>\n" +
                        "          <groupId>*</groupId>\n" +
                        "          <artifactId>*</artifactId>\n" +
                        "        </exclusion>\n" +
                        "      </exclusions>\n" +
                        "    </dependency>"}/>


                        <h3 id="mvn3_d"> mvn 的排包 </h3>
                        <Markdown source={"     <groupId>com.**.**</groupId>\n" +
                        "     <artifactId>**-client</artifactId>\n" +
                        "一般是groupId以com，org开头； 写完之后要检查一下，有时明明排包了 ，结果发现环境上还是有不想看到的包，浪费了时间；"}/>

                    </Col>
                    <Col span={5}>
                        <Anchor showInkInFixed="true" style={{background:"#ebefe0"}}>
                            <Link href="#mvn3_2" title="mvn3不能下载mvn2的jar"/>
                            <Link href="#mvn3_d" title="mvn 的排包"/>

                        </Anchor>
                    </Col>
                </Row>
            </div>

        );
    }
}

export default JsPage;